<template>
  <view class='container'>
    <audio-cc :src="url" ></audio-cc>
  </view>
</template>

<script>
import audioCc from '../../uni_modules/audio-cc/components/audio-cc/audio-cc.vue'

export default {
  data() {
    return {
      url: ''
    }
  },
  components: {audioCc},
  onLoad(options) {
    console.log('option: ', options)
    let link = decodeURIComponent(options.links);
    console.log('link: ', link)
    // 设置连接地址；
    this.url = link;
  },
}
</script>

<style scoped lang="scss">
.video {
  width: 100%;
  height: 100vh;
}

.container {
  display: flex;
  justify-content: center;
  align-content: center;
  padding-top: 1vh;
}
</style>